;;; newlisp-settings2.el --- gww

;; Copyright (C) 2013  gww

;; Author: gww <gww@192.168.0.171>
;; Keywords: languages, lisp, newlisp

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; 

;;; Code:

(load-plugin "newlisp")
;;(autoload 'newlisp-mode "newlisp-mode" "Major mode for newLISP files." t)
(require 'newlisp)

(add-to-list 'auto-mode-alist '("\\.lsp$" . newlisp-mode))
(add-to-list 'interpreter-mode-alist '("newlisp" . newlisp-mode))
;;
;; ;; if needed
(newlisp-mode-setup)
(defun newlisp-mode-user-hook ()
  (setq comment-start "; ")
  (setq tab-width 8)
  (setq indent-tabs-mode nil))

(add-hook 'newlisp-mode-hook 'newlisp-mode-user-hook)

(defun show-newlisp-repl()
  (interactive)
  (newlisp-show-repl)
  (show-output-window "*newlisp*" t))

(define-key newlisp-mode-map [f1] 'show-newlisp-repl)
(define-key newlisp-mode-map (kbd "C-c z") 'show-newlisp-repl)

(provide 'mod-newlisp)

;;; newlisp-settings.el ends here

